using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Runtime.Serialization;

namespace TemplateWeb.DTO
{
	/// <summary>
	/// Data transfer object which is associated with HuongDan table in database
	/// </summary>
	public class HuongDanDTO
	{
		public int ID { get; set; }
		public string TenHuongDan { get; set; }
		public string NoiDung { get; set; }

		public static HuongDanDTO Translate(DataRow row)
		{
			var dto = new HuongDanDTO
			{
				ID = int.Parse(row["ID"].ToString()),
				TenHuongDan = row["TenHuongDan"].ToString(),
				NoiDung = row["NoiDung"].ToString(),
			};
			return dto;
		}
	}
}